package com.zhupanlin.springsecurity.dao;

import com.zhupanlin.springsecurity.entity.Role;
import com.zhupanlin.springsecurity.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author zhupanlin
 * @version 1.0
 * @description: TODO
 * @date 2024/12/14 23:04
 */
@Mapper
public interface UserDao {

    // 提供用户名返回用户方法
    User loadUserByUsername(String username);

    // 根据用户id查询用户角色信息
    List<Role> getRolesByUid(Integer uid);
}
